package main;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author WIN7
 */
public class City extends Item{

    public City(String _name, int x, int y)
    {
        super(_name);
        try
        {
            sprite = new Sprite(Image.createImage("/City.png"));
        }
        catch(Exception ex)
            
        {
            ex.printStackTrace();
            return;
        }
        sprite.setPosition(x, y);
        xLocation = sprite.getRefPixelX();
        yLocation = sprite.getRefPixelY();
        sprite.defineCollisionRectangle(sprite.getWidth()/2, sprite.getHeight()/2, 2, 2);
    }

}
